layout_manager: new WorkspaceLayout(metaWorkspace, monitorIndex),
});
- // When dragging a window, we use this slot for reserve space.
- this._reservedSlot = null;
- this._reservedSlotWindow = null;
this.metaWorkspace = metaWorkspace;
this.monitorIndex = monitorIndex;
return this._windows.length == 0;
}
- setReservedSlot(metaWindow) {
- if (this._reservedSlotWindow == metaWindow)
- return;
-
- if (!metaWindow || this.containsMetaWindow(metaWindow)) {
- this._reservedSlotWindow = null;
- this._reservedSlot = null;
- } else {
- this._reservedSlotWindow = metaWindow;
- this._reservedSlot = this._windows[this._lookupIndex(metaWindow)];
- }
- }
-
syncStacking(stackIndices) {
this.layout_manager.syncStacking(stackIndices);
}
}
}
- _dragBegin(overview, window) {
+ _dragBegin() {
this._inDrag = true;
- this._setReservedSlot(window);
}
_dragEnd() {
this._inDrag = false;
- this._setReservedSlot(null);
}
vfunc_allocate(box) {
this._updateScrollPosition();
}
- _setReservedSlot(window) {
- for (let i = 0; i < this._workspaces.length; i++)
- this._workspaces[i].setReservedSlot(window);
- }
-
getActiveWorkspace() {
let workspaceManager = global.workspace_manager;
let active = workspaceManager.get_active_workspace_index();
this.add_actor(this._workspace);
}
- _setReservedSlot(window) {
- this._workspace.setReservedSlot(window);
- }
-
getActiveWorkspace() {
return this._workspace;
}